<?php
function message($name = 'message')
{
	$CI =& get_instance();
	
	if ($CI->session->flashdata($name))
	{
		$flash = $CI->session->flashdata($name);
		
		//return '<div class="' . $flash['type'] . '">' . $flash['content'] . '</div>';
		return '<div class="' . $flash['type'] . '">' . $flash['content'] . '</div>';
	}
	else if (isset($CI->message->msg))
	{
		dump($CI->message->msg);
		//return '<div class="' . $flash['type'] . '">' . $flash['content'] . '</div>';
	}
}
